<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>全选/反选/多选</title>
    <link rel="stylesheet" href="./css/style.css" />
  </head>
  <body>
    <div id="app">
      <div class="row">
        <div class="relatedInstance">
          <ul>
            <li id="">
              <div class="tabItem">
                <input type="checkbox" />
                <span> 人员 </span>
              </div>

              <ul>
                <li><input type="checkbox" /><span>我是一条假数据</span></li>
                <li><input type="checkbox" /><span>我是一条假数据</span></li>
                <li><input type="checkbox" /><span>我是一条假数据</span></li>
              </ul>
            </li>
            <li id="">
              <div class="tabItem">
                <input type="checkbox" />
                <span> 项目 </span>
              </div>

              <ul>
                <li><input type="checkbox" /><span>我是一条假数据</span></li>
                <li><input type="checkbox" /><span>我是一条假数据</span></li>
              </ul>
            </li>
            <li id="">
              <div class="tabItem">
                <input type="checkbox" />
                <span> 机构 </span>
              </div>

              <ul>
                <li><input type="checkbox" /><span>我是一条假数据</span></li>
              </ul>
            </li>
          </ul>
        </div>
      </div>
    </div>

    <script src="./js/vue.js"></script>
    <script>
      var newlist = new Vue({
        el: "#app",
        data: {
          entities: [
            {
              text: "人员",
              child: [
                { text: "第一组01" },
                { text: "第一组02" },
                { text: "第一组03" },
                { text: "第一组04" },
                { text: "第一组05" },
              ],
            },
            {
              text: "项目",
              child: [{ text: "第二组01" }, { text: "第二组02" }],
            },
            {
              text: "机构",
              child: [
                { text: "第三组01" },
                { text: "第三组02" },
                { text: "第三组03" },
                { text: "第三组04" },
              ],
            },
          ],
        },
      });
    </script>
  </body>
</html>
